﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/admin.master" AutoEventWireup="true" CodeFile="ChucVu.aspx.cs" Inherits="Admin_ChucVu" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <script type="text/javascript">
        $(document).ready(function () {
            $("#<%=txtNgayTao%>").datepicker({ dateFormat: "dd/mm/yy", maxDate: "+0D" });
            activeMenu(7, 0);
        });
    </script>
    <div class="divsize">
        <fieldset>
            <legend>Chức vụ</legend>
        <ol class="form form-clear">
            <asp:Label ID="messageID" runat="server" Enabled="false"></asp:Label>
            <li>
                <label>Mã Chức vụ</label>
                <asp:TextBox ID="txtMaCV" runat="server"></asp:TextBox>
            </li>
            <li>
                <label>Tên</label>
                <asp:TextBox ID="txtTen" runat="server"></asp:TextBox>
            </li>
            <li>
                <label>Ngày tạo</label>
                <asp:TextBox ID="txtNgayTao" runat="server"></asp:TextBox>
            </li>
            <li>
                <label>Level</label>
                <asp:TextBox ID="txtLevel" runat="server"></asp:TextBox>
            </li>
            <li>
                <asp:Button ID="btnThem" runat="server" CssClass="btn primary" Text="Thêm" />
                <asp:Button ID="btnSua" runat="server" CssClass="btn primary" Text="Sửa" />
            </li>            
        </ol>
            </fieldset>
    </div>
    <div>
        <fieldset>
            <legend>Danh sách</legend>
            <asp:ListView ID="listViewChucVu" runat="server">
                <LayoutTemplate>
                    <table border="1">
                        <tr>
                            <th>Mã Chức vụ</th>
                            <th>Tên</th>
                            <th>Ngày tạo</th>
                            <th>Level</th>
                        </tr>
                        <asp:PlaceHolder ID="itemPlaceholder" runat="server"></asp:PlaceHolder>
                    </table>
                </LayoutTemplate>
                <ItemTemplate>
                    <tr>
                        <td><%# Eval("ChucVuId")%></td>
                        <td><%# Eval("Name") %></td>
                        <td><%# Eval("DateCreate") %></td>
                        <td><%# Eval("[Level]") %></td>
                        <td>
                            <asp:LinkButton ID="lbtnXoa" runat="server"
                                ToolTip="Xóa một bản ghi"
                                CommandName="Delete"
                                ForeColor="Brown">Xóa</asp:LinkButton>
                            |
                            <asp:LinkButton ID="lbtnSua" runat="server"
                                ToolTip="Sửa một bản ghi"
                                CommandName="Update"
                                ForeColor="Yellow">Sửa</asp:LinkButton>
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:ListView>
        </fieldset>
    </div>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
    <ul class="m-melanin-vertical-navigation">
         <li>
                <span class=" ss_sprite ss_shield">&nbsp;</span>
                <a id="A4" href="ChucVu.aspx" class="m-melanin-vertical-navigation-link">Chức vụ</a>
          </li>
    </ul>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder3" Runat="Server">
    <asp:Button ID="button_create_chuvu" runat="server" CssClass="btn small primary" Text="Thêm chức vụ" />
</asp:Content>

